package com.kgc.warehouse.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kgc.warehouse.system.common.ResponseResult;
import com.kgc.warehouse.system.dto.PwdDto;
import com.kgc.warehouse.system.dto.UserPageDto;
import com.kgc.warehouse.system.entity.User;
import com.kgc.warehouse.system.vo.UserVo;

import java.util.Map;

/**
* @author main
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-02-03 20:07:42
*/
public interface UserService extends IService<User> {


    ResponseResult selectPage(UserPageDto userVo);

    ResponseResult addUser(UserVo userVo);

    ResponseResult getUserById(Integer id);

    ResponseResult deletebyId(String ids);

    ResponseResult updateUser(UserVo userVo);

    Map<String, Object> menu(String username);

    ResponseResult updateAvailable(Integer id, Integer available);

    ResponseResult resetPwd(Integer id);

    Integer changePwd(User user, PwdDto pwdDto);
}
